"use strict";

angular
	.module('ListModule',[])
	.controller('ListCtrl',function($scope,$http,$state,$stateParams){
		console.log($stateParams);
		$scope.getData=function(){
			console.log('data/'+$stateParams.type+'.json');
		$http.get('data/'+$stateParams.type+'.json')
			.success(function(response){
				$scope.items=response;


			})
		};
		$scope.getData();
	})